package com.wicket.okrcomponent.integration.dto;

import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc MessageQueueDataDto
 * @使用场景
 */
@Data
public class MessageQueueDataDto extends BaseDto implements Serializable {

  /**
   * 字段名
   */
  @ApiModelProperty("字段名")
  private String fieldName;

  /**
   * 映射字段名
   */
  @ApiModelProperty("映射字段名")
  private String mapFieldName;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    MessageQueueDataDto that = (MessageQueueDataDto) o;
    return fieldName == that.fieldName && mapFieldName == that.mapFieldName;
  }

  @Override
  public int hashCode() {
    return Objects.hash(super.hashCode(), fieldName, mapFieldName);
  }

}
